#ifndef SIMPLEGRAPHICBUTTON_H
#define SIMPLEGRAPHICBUTTON_H

#include <QLabel>
#include <QPushButton>
#include "global.h"

class SimpleGraphicButton : public QPushButton
{
    Q_OBJECT
public:
    explicit SimpleGraphicButton(QWidget *parent = 0);
    //设置位置描述信息
    void set_geo_description_and_num(const QString &inf);
    //设置启动灯
    void set_start_led(led_mode flag);
    //设置故障灯
    void set_fault_led(led_mode flag);
    //设置反馈灯
    void set_fedback_led(led_mode flag);
    //初始化标签
    void init_const_member();

    void set_undefined_state();

signals:

public slots:

private:
    QLabel *geo_descrption;	//位置描述
    QLabel *start_led;			//启动ｌｅｄ
    QLabel *fedback_led;		//反馈ｌｅｄ
    QLabel *fault_led;			//故障ｌｅｄ

};

#endif // SIMPLEGRAPHICBUTTON_H
